made location service dynamic