changed from dict to array...better