save state at now. added comments