dynamic array now at least compiles (pointer fail)