fixed code review changed, added copyright header.