add loop for fetch