added advance function
refactor
remove keys from routes