renamed var in input func