created to test the fetch func