exception not working, trying to fix