not saving undefined values anymore