init func of get width