added solution for gps