simple method generation