slightly more accurate code butchery