modified fetch rotine