adding type function to location