fixed syntax errors & levels inconsistencies