modified flags of face detector