remove malloc from command