having it in separate method will be much better