working on pi calc