could you write a comment explaining this, I know why this works but not everyone reading the code will.