backend works for only two locations