moved part of generation to reset