face detector tidy up