final main; everythhing works now!!!