comparing states