bug with processes array