apply it to the input