add throws declaration