fix format percent function
update tables