out is not used for the cost computation