crystal detection