the first version of complete head detection