moving into main method