put init function in constructor