generating costs