add optional into record