fix code gardening gone wrong