clean upsample code, test on enyo 2.1
remove old sample code