fix for adding element at front and back of dlst