major code reduction