applying inputs