switched a statement around