adding comments in the source explaining this...