removed an unneccessary cast