checking for nils elsewhere