d method const