This line seems odd - not immediately obvious to me what's going on here