pass cost in correct format