fixed lose was not declared