update dent function