location functions added