adds comments for explanation