make dls function easier