added code to find central location