dont build tree if no course