optizime the _M_.prototype code