updated snippett