change nil to empty