add static method to make usage simpler