pseudo cost calculating added