refractor, add check box validation, print to console