init method added for joining other methods