added collision for objects