wrong if then syntax used