add rs.py for later correction