add new methods for key frames detected