adding comments, decoded algorism