optimised getms method