add lose code