the main code file