cost type changed to int