adjusting global widths and heights