fixed service code snippet in the index