working solutions for ATM problem