added helper function not-nil