fixed compile error, updated commenting