saves z coord