modify .gitignore and source code to pass compile