debugging syntax error