method defined() added