Minor enhancement: getPosititions helper function

- wish it could return numpy array