testing and fixed casting