draft function to check random pds