resize rutines