added corrections for variations of detritus