Change tinysegmentation function