changed location functions