fixed due dates and added PI def