extract mehtod to route methods