changed back to single matrices
minor change, going to work at school