fixing apiObject; removing comments