modified with resources in routes