cutting down the forest around the church, a new town was built next to it, according to the traditional rectangular plan and the planned square, which under the tsar's administration in the 19th century was named Nikolaev (called as Smėlynė by the local folks). In 1781, Old Panevėžys had 2 streets and 21 homestead, while in 1788 in New Panevėžys there were 144 plots near 8 streets. The longest in this part of Panevėžys was Ramygalos Street, which was divided into two branches at the northern end and between them was a triangular market square. At the end of the 18th century, a mixed plan of Panevėžys was forming: it consisted of three parts of different sizes and different stages of development. The entire structure was dominated by New Panevėžys in which the Piarists Monastery with a Classicist style towerless stone church was rebuilt after the fire of 1790. 19th – early 20th centuries Since the early 19th century, New Panevėžys grew faster and by the middle of the century its territory spread mostly to the west, less to the east, and with other parts of the city – Old Panevėžys and especially the grown-up Smėlynė (which had 7 streets and a square in 1856) – had already formed a single complex. As the territory grew more slowly than the population, the buildings were mostly built in the central part of New Panevėžys, where densely built-up quarters were formed. After 1825 the Evangelical Lutheran Church was built in the city (it was rebuilt in 1845), while in 1830 the county's treasury, in 1837 – a prison, after 1840 – a hospital and after 1842 – a boyar's school were built. The significance of the Piarists Monastery increased, however it was closed after the Uprising of 1831 and the monks' corps was turned into a military barracks, while the Catholic church was remade into an Eastern Orthodox church. There were a number of brick buildings in New Panevėžys, some of them in the Classicist style and brick buildings began to dominate in the city center. However, unlike in most Lithuanian cities, Panevėžys spread over a rather large area on both sides of Nevėžis and lacked buildings which would have formed its silhouette and highlighted the panorama of the city in the landscape of plains. In 1877–1885, the St. Peter and St. Paul's Church of Romanesque Revival style with two tall towers