added a static version