fix: definition of init function