added functional that checks type of added items in repository