startRequest code