removed unneccisary cast