fixed some syntax issues