refactor of Ivan The Terrible blog for performance