progress on pid imlementatin