fixed sample code for github