fix to convert and add to buff func