Shouldn't you return `ret` here?