fixed some redundancy with the isaac algorithm