checking for length of processes