fixed despikesimple and sonic funcs