got rid of unused variable n_op