with comments by Dima