BUG: inflation filter needs to be declared outside of if