was passing false instead of null to recursive function