functions for routes added