change get-snippet to get-by-id