writing methods to init everything