correct the method of reading amp and the method of detecting special characters