array should be a ptr