d code finish