need to do: check for 0 add to dynarray (trying now) also error checking