adjusts code structure to let it more beauty
drop unnecessary line in routes