change main functions name to be more descriptive