prepare Pub and Sub GP and evaluate