made the backend work with filter of location