remove duplicate function (also in ilRestLib)