added GPS functionality