Axial and polar modes for the ring down of a Schwarzschild black hole with an r dependent mass-function