new print function for state to try to debug the program