removed delete_all method
fix case with 0 locations