changed cost to integer