arranging several functions