getting rid of unsafe value and error access from the task result