write correct state number