missing brackets and missing space between if and bracket