fix conditional syntax