WIP;
update;
calculated floor matrices and reuse them when necessary;