loadcosts.java modified