adapted cost function to newer siocs version