added static method when