fix codes for patch. excepts 'implements not functions' issue.