taking math source folder as input argument