i think this function should be removed.