started to calculate costs of existing code