fix to C SAMEAS