added tenthing function