initially working resizing routines