if then statement for user geo function