#5 renamed cost functions (prefix deleted)