setPosition and free()