change bad def arg maker to ternery