remove unneeded casting