added the function and mod directory