corrected setPos()