updated constraints in routes