small change for matlab compatability