change frame detect alg