add a bit more strictness to the resize generator