skeleton code for states