rename inner functions