added calculate method