this function is also not used any more