fixed atm cut logic