fix to location output