remove debug info and add a counter for petition