modifies rst file