add state store procedure