renamed Pantelis's main function to something more descriptive (sorry
P!)