again resimplified snippet