update location in parser