assigned function to variable