added setDepth