add init function and text