functionalities fixed for the calculator