added some new methods for statespace