moved keep argument from lapply body