console outputs in mylocation function