resizes env