adding nil? check