change mix ratio logic to actually work