moved render functions  in obj