add comment explaining code