start of atm class
more validation pinning