chaged if statment to have true at top.