change null to {}