improving readable snippet