add comments, trying to make code simpler