renamed init function