Change td to function like g