start updateding code with isset()