fixing syntax bug