is this function not needed anymore?