remove $location from dependencies