updated depricated cmd.