added function get_xmx