small sample code mistake