started working on fetch loop