add function for empty object