Removed unused m in first function