adding cast stuff