load function correction