fixed error in procedure cost table
functions