for dan, the resizing bug