null cases taken care of