check value are defined