This state thing is confusing trying to do it your way