avoid undefined value