fixed build
[refactor] removed generic parameter from Cost