enhance readability of depth()