check for undefined on m.what