'lapply.ds' removed. some other functions amended.