added a few more commented code pieces