detection sort of working