works fine just the resizing