get ride of syntastic errors and remove unused variables and initialize functions