forgot to generalize one input parameter