method moved to route