Made matrices and ladders global vars