added pattern recog assignment