return the result of remove.apply