changed variable x to m