set artSamp correctly, clear up memory
clear up memory