added function to object