max exp math stuffs