add throws exceptions in methods