implemented math methods