updated translateZ formula