replaced sample with my own plasma code