merge depth into context