update, added getfromArray functions