some progress on minimize