fix generate and transform
fold skeleton