better matlab compatibility
matlab compatibility