to debug cost