revise return to continue in enumerate function