aggregate pdf derivative working