added method to get m