finished reload function