added notice and fixed code error