I think dll isn't used in this function, is it? can be deleted?