guard against nils