changed array names to the proper ones