added flag to adjust for elevation