slicing instaed of splicing in breed function