almost finished with calculations