working of locations

locations now work