moved the object transition to the object itself