update check_num function
convert fields to numeric (#8). needs testing.