Added name to enum,added throws