renamed main function