added more input position smoothing