is it possible to write functions in this way as well