changed raise for rank 1