detecting arg properly