working on patient states