fixed syntax error in sample code