insert metavalue check code