fixing re example bugs