add main, logic func was tested