added reload function