fix 'healthy' code according to specs