passed methods to constuctor preparing for gen