rm unneeded cast