fixed stroke amplitude type and tests