renamed 'in' method to 'inp'