trying to squeeze variables into function

trying to squeeze variables into function