reduce task writing bug