SMALL FIX FOR COST()