add adder function to state module