added nil test for contacts