some minor changes to compile file