remove whitespace and add more methodsinto the gen