added sample2, a hacky temporary sampling method