spit out value from function