pow, sqrt, connect tree