added smile detection, but it is not really accurate