Created new function to convert mac