change decode behaviour