add location code to graphics