refactoring, get_mac instead print_mac