more work on dynamic arrays