adding misc func