rewrite resets and init. remove unneccessary div