created function removeById