optimized depth and character id handling. less depths are now used.