cost grabbing now working properly