psth and smoothign working