extended location check
modified tests
added scaling factor plot and save it