improved c.snippet