moved around methods into order of execution