handle the arguments correctly