clear pre before every render