move pointer inits and bug fix