codes for debug local axis errors