add pdate functions