got rid of useless array