Kind of working

exceptions are not throwing correctly