changed if syntax