* code for task#1782.
 * code for task#1782.