added check for married without spouse case