keep locality constraints within the valid levels