added dynamic coin change