modified calculator