fixes cost and passes tests