added init function: