add z and double