still previous bug: changed in the function for creating routes.