have processes in a struct array
removed some naughtiness