changing route method