add amount in where condition