method defined twice