added states in printstatus