Reducing tree (better way)