code changes for locations