Script for convert collection