separate function to add walls in