modified the sample project