fix bug when not passing optional 2nd arg