merge hull first version has been implemented but not tested