adds catch for when we get a string instead of an expected numeric value