fixed location function