crud is working and location is taking agent id