finished main() method