use MAX_NUM_FORMS instead of MAX_FORMS