format correction for collection input