use function for some command