add loc and range