made setPosition() public