an actual version with comments