Is there an indentation error here?   How does this code work at all?