fix algebra constructions