use bool to represent operation type