location and view hat correction