making compatible with old data