change oncreated to enumerate, change onscanend to enumerate-done