throw error if not initialized