pre testing fetch code