have the returned function stored in a