fixing sample so it compiles