fix pcavlad bugs + three methods of filtering frame