added basic calc processing