procedure for getting d