x function calculated at PDA maybe be wrong. Study this.