using ma.ones rather than ma.empty