removed unneccessary arrays