trying a separate array instead of a separate pointer