fixed code snippted format