checking type and value for incoming status