trees gradient