move the logic to another method