change null to undefined