built a jar and run the main successfuly. changed to intelliJ