foursquare function fix