take a look at this function should it be removed?