this function was not used