removed classes cellstate and patternstate