started using some of the state parts in code