working on isampling
working on isamp