added AB matrices and some immoralities stuff