Amptester code sligthtly improved