changed the parameter of remove in persistence from object to id