added check for cash amount