cs solution detection: style cleanup
simplified cs solution detection