working on calculations