move 'dataDecl' to Environment and update it