pattern recognition submit.