Issue193 fix

fix for issue 193 using a record