draft for crystal detection