reduce: remove more code blocks