changed order of main function.. nothing big