removed duplicate calculation of command_line