check for object exist first