fixed raise exceptions