lsmall changes
updated moving average filter