now does not resize when unwanted