fixed the brackets in condition