functions for the calculator added