implemented AM, still needs to handle amount correctly