stable code with comments