using local variable when modifying the request property