get op from input value