added let infrom of result to remove error