added tempWalls time to refactor