decomposing and redistributing the statement method - extract method