made some changes mini max