tweaked the amount editable code.