added GPS check