removed barrier by checking and waiting till request is complete