changed code and added a new route