implemented beginning of syntax handling