some changes to run sample