added calculations for depth calculation
improvements to translation vectors