updated route. replaced depricated functions