remove unnecessary void casting