added field checking; you get an error instead of nothing