Changing to ojml way