attempting to fix exception in thread main problem