function working in UnaryAlgebra module. updating has problems