made createContext function