made things less arma complient to allow testing with eigen