adding reload code