add simple name function for objects