adding init method