fixing some syntax issues