changed the width size
adding trees datastructure