update misc functions