command line functions body