replaced returnDefault with return_default