parse states