removed unneccessary cast