fixed another error
added some comments