set maxleaps to 5