cleaner decoder code