finished the commands removehostids for matrix operations