fixed some syntax problems