add gram and main file