updated n-coded master with pretty print