added comments for future optimization