avoid undefined assignment