houskeeping, final code