apply to second input