needed to downgrade from else if to if else on my first block as it was terminating prematurely