rewriting ruaumoko to make sure there are no mistakes