ignored case for keywords and added scope for vars