fix parameters to delete function...