using location to read parameters