tweaked overflow rules