working on frames recognition and encryption