calling the right command