additional changes to partitioner.hpp for call_with_data