added better syntax handling for C