modified STATE machine