add lambda fun for process list length