changed listlimit to variable, breaking new sub