resolved problems with resize functions that were failing tests