add foreignDepth default for depth