added comments for new implementation