added some free functions to ease of use