adding loading functions