changed reload logic