divide a piece of code in 2 methods