grammar and code alignment