changed inserts to match the new pattern