make basePath variable