lequal and gequal depth functions