Added correct z cord mapping