MST FUNCTION WORKS