started working on calculate