issue a warning when the old and new shape differ