check for object before creating them