function will now work withany simple object