remove some reduntant cast