better logic for dealing with DINs
minor