updated clip analysis to not crash