edits to matR-apps