fix to use location(argument) insted of getCurrentLocation