using rational numbers for depth