working outside of def