implement max_cr filter at last
use max_cr filter now that it works