use pointer to array
update readme