passing functions

trying to pass functions instead