modify return snippet