put maximizer in main