added inicialization function