update code snippet for standards