cap xp at 2*max