write simple wrapper around array