removed unnecessary arrays