takes out unnecessary null card checks