added in if loop to selectively decimate, only need to add decimate in