debug position code