added instructions for state callback