commented edit function in consult resource