added 3 arrays 2 functinos