switch order of before/params