fixed snippet problem