changed amount into qty