added sanitize check on amount