remove old data from template