D3 stuff that needs to be put in d4

This any good i made it long time ago