better snippet trimming
better snippet trimming