clarifying the code