couldn't make static method work, moving getPi* methods