init function declaration