add in function: check the GPS is availible