removed unecessary cast