fixing base case