added comments for future code refactoring