added more explanations what this all for. the purpose of that code.