add checking before send values