started working on convertng pos to haxepos