move pointer inits and bug fix
uncomment