added lapply call