added lapply for resamp lowlvl