fixing some syntax issues in previous commit