moved clear variable out of C_POINTER