changed fetch parameter to be const