added every and any function in route
added filter and flatten to route