adding pattern recognition skeleton