tweaked main