remove unused 'cost' member