cost supplies when using some functions