fix static functions