before profiling and location test