created extension methods to copy state objects