fixed getState() in prep for next steps