update matrix logic
upload codes
update logic