added default argument initialization, fixed = vs == issue