our code works nicely with square