updatePos needs mroe work