still some bugs with duplications, check that later