fixed base case for inserting epsilon